<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets">
  <body>
    <ui:composition template="/WEB-INF/templates/main.xhtml">
      <ui:define name="titoloSezione">Docente</ui:define>
      
      <ui:define name="corpo">
        <!-- Script di redirezione -->
      	<h:outputScript rendered="#{!mainBean.loginEseguito}" target="head">
          window.location="/BiPoD/index.jsf";
        </h:outputScript>
        
        <h1>Homepage Docente</h1>
        <h:form>
        <p class="sottotitolo">
          Sistema BiPoD (Bandi per la Programmazione Didattica)<br/>
          <h:commandLink action="/pages/docente-report" value="Invia una segnalazione d'errore"/>
        </p>
        </h:form>
        
        <h:form>
        <p class="plainText">
          Benvenuto #{mainBean.docente.docente.nome} #{mainBean.docente.docente.cognome}
          (<h:commandLink action="#{mainBean.login.logout}" value="Esci"/>)
        </p>
        </h:form>
        
        <br/>
        
        <!-- Menu' -->
        <h:form>
          <p class="linkBar">
            Gestione Bandi e Richieste:
            <h:commandLink action="/pages/docente-bandi" value="Bandi Attivi"/>,
            <h:commandLink action="/pages/docente-richieste" value="Richieste Effettuate"/>
          </p>
          <p class="linkBar">
            Gestione Dati:
            <h:commandLink action="/pages/docente-dati" value="Dati Personali"/>
          </p>
        </h:form>        
        
        <hr noshade="noshade" style="color: black"/>
        
        <ui:insert name="contenuto"></ui:insert>
      </ui:define>
    </ui:composition>
  </body>
</html>